package com.itgungnir.designpattern.state;

public class Test {
	public static void main(String[] args) {
		CandyMachine candyMachine = new CandyMachine(5);

		candyMachine.insertMoney();
		candyMachine.turnCrank();

		candyMachine.insertMoney();
		candyMachine.turnCrank();

		candyMachine.insertMoney();
		candyMachine.turnCrank();

		candyMachine.insertMoney();
		candyMachine.turnCrank();

		candyMachine.insertMoney();
		candyMachine.turnCrank();

		candyMachine.insertMoney();
		candyMachine.turnCrank();
	}
}